﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Dal
{
    /// <summary>
    /// Wraper used for most wcf operations
    /// </summary>
    public class Wrapper
    {
        [DataMember]
        public List<Story> songs
        {
            get;
            set;
        }

        [DataMember]
        public List<StoryHolder> songHolder
        {
            get;
            set;
        }

        /// <summary>
        /// The id's that are used and should not be taken by other threads.
        /// </summary>
        [DataMember]
        public List<int> takenIDs
        {
            get;
            set;
        }

        /// <summary>
        /// The ids that are updated and need to be removed.
        /// </summary>
        [DataMember]
        public List<int> removeIDs
        {
            get;
            set;
        }

        /// <summary>
        /// Return error detail to the client application so it knows what happened.
        /// </summary>
        [DataMember]
        public Exception errorDetails
        {
            get;
            set;
        }

        [DataMember]
        public string listMp3
        {
            get;
            set;
        }
    }
}
